package com.group6.controller;



import com.group6.entity.Nurse;
import com.group6.service.NurseService;
import com.group6.vo.NurseVo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/Nurse")
public class NurseController {
    @Resource
    private NurseService nurseService;

    @RequestMapping("/NurseAdd")
    public String NurseAdd(@RequestBody NurseVo nurseVo){
        return nurseService.NurseAdd(nurseVo);
    }

    @RequestMapping("/NurseDelete")
    public String NurseDelete(@RequestBody Nurse nurse){
        return nurseService.nurseDelete(nurse);
    }

    @RequestMapping("/NurseList")
    public String NurseList(){
        return nurseService.NurseList();
    }

    @RequestMapping("/NurseUpdate")
    public String NurseUpdate(@RequestBody Nurse nurse){
        return nurseService.NurseUpdate(nurse);
    }




}
